﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Collections;
using JXT.PrimaryKey.Batman.Domain.Services;
using JXT.PrimaryKey.Batman.Domain.Specifications;
using JXT.PrimaryKey.Batman.Domain.VirtualExchange.Models;

namespace JXT.PrimaryKey.Batman.Domain.VirtualExchange.Services
{
    public interface IUserBindingService : ICachedService
    {
        void Add(UserBinding entity);

        void Update(UserBinding entity);

        void Delete(UserBinding entity);

        int Count(ISpecification<UserBinding> specification);

        UserBinding GetSingle(ISpecification<UserBinding> specification);

        UserBinding GetSingleByUserId(int userId);

        IPagedCollection<UserBinding> GetList(IPagedSpecification<UserBinding> specification);
    }
}
